<?php
class GuildCompetitionLibraryVo extends SzAbstractMySqlVo
{

    private $quality;
    private $guildsByGroup;
    private $createTime;
    private $updateTime;
    private $endTime;

    /**
     * Initialize GuildCompetitionLibraryVo.
     *
     * @param $quality
     * @param $guildsByGroup
     * @param $createTime
     * @param $updateTime
     * @param $endTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return GuildCompetitionLibraryVo
     */
    public function __construct($quality, $guildsByGroup, $createTime, $updateTime, $endTime, $isInsert = false) {
        $this->quality = $quality;
        $this->guildsByGroup = $guildsByGroup;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->endTime = $endTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'GuildCompetitionLibraryVo';
        $this->ormName = 'GuildCompetitionLibrary';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'quality' => $this->getQuality(),
            'guildsByGroup' => $this->getGuildsByGroup(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'quality' => $this->getQuality(),
            'guildsByGroup' => $this->getGuildsByGroup(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getQuality(),
            $this->getGuildsByGroup(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getEndTime(),
        );
    }

    public function getQuality()
    {
        return $this->quality;
    }

    public function setQuality($val)
    {
        $this->saveColumnStatus(0, $this->quality);
        $this->quality = $val;
    }

    public function getGuildsByGroup()
    {
        return $this->guildsByGroup;
    }

    public function setGuildsByGroup($val)
    {
        $this->saveColumnStatus(1, $this->guildsByGroup);
        $this->guildsByGroup = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(2, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(3, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getEndTime()
    {
        return $this->endTime;
    }

    public function setEndTime($val)
    {
        $this->saveColumnStatus(4, $this->endTime);
        $this->endTime = $val;
    }

}